#include "pontohash.h"

PontoHash::PontoHash():
    QPoint()
{
}

PontoHash::PontoHash(int x, int y):
    QPoint(x, y)
{
}

PontoHash::PontoHash(const QPoint &point):
    QPoint(point)
{
}

uint qHash(const PontoHash &pontoHash)
{
    int x = pontoHash.x();
    int y = pontoHash.y();

    const int prime = 31;
    int result = 1;
    result = prime * result + x;
    result = prime * result + y;
    return result;
}
